package com.fac.vo;

import com.fac.dto.InspectionPlanCreateDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 巡检计划VO
 */
@Data
@Builder
@ApiModel(description = "巡检计划返回对象")
public class InspectionPlanVO implements Serializable {

    @ApiModelProperty(value = "计划ID", example = "1")
    private Long planId;

    @ApiModelProperty(value = "计划编号", example = "P202401010001")
    private String code;

    @ApiModelProperty(value = "计划名称", example = "设备日常巡检")
    private String name;

    @ApiModelProperty(value = "巡检周期：0每天，1每周，2每月，3每季度", example = "0")
    private Integer cycle;

    @ApiModelProperty(value = "管理员姓名", example = "张三")
    private String managerName;

    @ApiModelProperty(value = "状态：0禁用，1启用", example = "1")
    private Integer status;

    @ApiModelProperty(value = "巡检项目列表")
    private List<InspectionPlanCreateDTO.InspectionItem> items;
}